<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class CommonUtils {
	
	public static function encryptPassword($str) {
		return sha1(md5($str));
	}	
	
	public static function number_format($number, $digit=3){
		$amount = round($number, $digit);
		return number_format($amount, $digit, '.', '');
	}
}

